import React from "react";
// import {Link, NavLink} from "umi" //实际上就是react-router-dom中的Link组件
// NavLink 实际上就是react-router-dom中的NavLink组件
import Menu from "../components/Menu.js";
import A from "../components/A.js";

export default function index(props) {
  return (
    <div>
      <div>
        {/* <NavLink to="/">首页</NavLink>
        <NavLink to="/a">a页</NavLink>
        <NavLink to="/b">b页</NavLink>
        <NavLink to="/sub">sub页</NavLink>*/}
      </div>
      <Menu />
      {props.children}
      <div>
        <A />
        <h1>页脚</h1>
      </div>
    </div>
  );
}

// import React from 'react'

// export default function index() {
//   return (
//     <div>
//         <p>index</p>
//     </div>
//   )
// }
